package com.wsd.tank;

public class Main {

	public static void main(String[] args) throws InterruptedException {
		TankFrame tf = new TankFrame();
		Integer initTankCount = PorpertyMgr.build().get("initTankCount");
		for (int i = 0; i < initTankCount; i++) {
			tf.tanks.add(new Tank(50 + 70 * i, 200, Direction.DOWN, Group.BAD, tf));
		}
		//music
		new Thread(()->new Audio("audio/war1.wav").loop()).start();
		while(true) {
			Thread.sleep(25);
			// 重新绘制
			tf.repaint();
		}
	}

}
